//@ sourceURL=lims-index.js
var limsIndex = Gikam.getPageObject({

    getEditListColumns : function() {
        return [ {
            checkbox : true
        },{index: true}, {
            field : 'indexCode',
            title : 'T_LIMS_INDEX.INDEXCODE',
            validators : ['notEmpty'],
            width: 200
        }, {
            field : 'i5Index',
            title : 'T_LIMS_INDEX.I5INDEX',
            validators : ['notEmpty'],
            width: 200
        }, {
            field : 'i7Index',
            title : 'T_LIMS_INDEX.I7INDEX',
            validators : ['notEmpty'],
            width: 200
        }, {
            field : 'remarks',
            title : 'T_LIMS_INDEX.REMARKS',
            width: 200
        }, {
            field : 'createdByName',
            title : 'T_LIMS_INDEX.CREATEDBYNAME',
            width: 200
        }, {
            field : 'createdTime',
            title : 'T_LIMS_INDEX.CREATEDTIME',
            width: 200
        } ];
    },

    getBaseInfoFormFields : function() {
        return [ {
            field : 'indexCode',
            title : 'T_LIMS_INDEX.INDEXCODE',
            validators: [{type: 'unique', rule: '/secure/basemodule/basedata/indexs/action/validate-unique'}, 'notEmpty','strLength[0,60]'],
            preInsert: true
        }, {
            field : 'i5Index',
            title : 'T_LIMS_INDEX.I5INDEX',
            validators: ['notEmpty','strLength[0,60]'],
            preInsert: true
        }, {
            field : 'i7Index',
            title : 'T_LIMS_INDEX.I7INDEX',
            validators: ['notEmpty','strLength[0,60]'],
            preInsert: true
        }, {
            field : 'remarks',
            title : 'T_LIMS_INDEX.REMARKS',
            validators : ['strLength[0,120]'],
            type: 'textarea',
            height: 100,
            preInsert: true
        } ];
    },

    getChooseListColumns : function() {
        return [ {index: true},{
            field : 'indexCode',
            title : 'T_LIMS_INDEX.INDEXCODE'
        }, {
            field : 'i5Index',
            title : 'T_LIMS_INDEX.I5INDEX'
        }, {
            field : 'i7Index',
            title : 'T_LIMS_INDEX.I7INDEX'
        }, {
            field : 'remarks',
            title : 'T_LIMS_INDEX.REMARKS'
        }, {
            field : 'status',
            title : 'T_LIMS_INDEX.STATUS'
        }, ];
    },

    baseUrl : IFM_CONTEXT + '/secure/basemodule/basedata/indexs'
});
